package com.ruoyi.produce.report.produceAnalysis.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 生产分析
 * 子表加工单情况
 * @author lsy 2021.12.31
 */
@Data
@NoArgsConstructor
public class ProduceAnalysisList {
    /**
     * 加工单编号
     */
    private String workSheetId;

    /**
     * 完成情况
     */
    private String completionStatus; //完成状态 0-未完成、1-已完成

    private double workSheetNumber; //计划完成数量

    private double completedNumber; //已完成数量
    /**
     * 备注
     */
    private String remark;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp startTime; //开始时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp predictedFinishingTime; //预计完成时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp endTime; //结束时间

    private long productionTime; //生产完成时间
    private long advanceTime; //提前完成时间(正数为提前完成天数、负数为逾期天数)

    public ProduceAnalysisList(String workSheetId, String completionStatus, double workSheetNumber, double completedNumber, Timestamp startTime, Timestamp predictedFinishingTime) {
        this.workSheetId = workSheetId;
        this.completionStatus = completionStatus;
        this.workSheetNumber = workSheetNumber;
        this.completedNumber = completedNumber;
        this.startTime = startTime;
        this.predictedFinishingTime = predictedFinishingTime;
    }
}
